﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/masAdmin.master" AutoEventWireup="true"
    CodeFile="BannerDetail.aspx.cs" Inherits="admin_BannerDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagename" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
    <!-- calendar stylesheet -->
    <link rel="stylesheet" type="text/css" media="all" href="../scripts/jscalendar-1.0/calendar-win2k-cold-1.css"
        title="win2k-cold-1" />
    <!-- main calendar program -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/calendar.js"></script>
    <!-- language for the calendar -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/lang/calendar-en.js"></script>
    <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
    <script type="text/javascript" src="../scripts/jscalendar-1.0/calendar-setup.js"></script>
    <div class="content-box-header">
        <h3>
            Main Banner Detail
        </h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table border="0" cellpadding="0" cellspacing="0" class="table100">
                <tr>
                    <td colspan="2">
                        <span class="commentRequireInputText">
                            <%=Resources.Resource.LBL_REQUIREMENT%>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="left" colspan="3">
                        <asp:ValidationSummary ID="vsumForm" runat="server" ShowMessageBox="true" ShowSummary="false"
                            CssClass="errorMessage" />
                        <asp:Label ID="lblErrorMessage" runat="server" CssClass="errorMessage"></asp:Label>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Name:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtName" MaxLength="255" Width="355px" runat="server">
                        </asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Link:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtLink" MaxLength="128" Width="355px" runat="server">
                        </asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td style="width: 150px;" align="right">
                        Starting Date(<span class="commentRequireInputText">*</span>):
                    </td>
                    <td style="width: 110px;">
                        <asp:TextBox ID="F_StartDate" Width="64px" runat="server"></asp:TextBox>
                        <input type="button" value="+" style="height: 21px; cursor: pointer;" id="selectStartDate" />
                    </td>
                    <td style="width: 120px;" align="right">
                        Ending Date(<span class="commentRequireInputText">*</span>):
                    </td>
                    <td style="width: 110px;">
                        <asp:TextBox ID="F_EndDate" Width="64px" runat="server"></asp:TextBox>
                        <input type="button" value="+" style="height: 21px; cursor: pointer; float: right;"
                            id="selectEndDate" />
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Image:
                    </td>
                    <td colspan="3">
                        <asp:FileUpload ID="fulImage" runat="server" />                      
                    </td>
                    <td>
                    </td>
                </tr>
                <tr id="trImage" runat="server" visible="false">
                    <td align="right">
                    </td>
                    <td colspan="4">
                        <asp:Image ID="imgImage" runat="server" ToolTip="Image" AlternateText="Image" />&nbsp;<br />
                        <asp:LinkButton ID="lbtnDeleteImage" runat="server" Text="Delete this image" OnClick="lbtnDeleteImage_Click" />
                    </td>
                  
                </tr>
                <tr>
                    <td align="right">
                        Active:
                    </td>
                    <td colspan="3">
                        <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="height: 40px;" valign="bottom" colspan="3">
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" OnClick="btnSave_Click"
                            CausesValidation="true" />
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="Cancel" OnClick="btnCancel_Click"
                            CausesValidation="false" />
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        Calendar.setup({
            inputField: '<%=F_StartDate.ClientID %>',     // id of the input field
            ifFormat: "%m/%d/%Y",      // format of the input field
            button: "selectStartDate",  // trigger for the calendar (button ID)
            align: "Tl",           // alignment (defaults to "Bl")
            singleClick: true
        });

        Calendar.setup({
            inputField: '<%=F_EndDate.ClientID %>',     // id of the input field
            ifFormat: "%m/%d/%Y",      // format of the input field
            button: "selectEndDate",  // trigger for the calendar (button ID)
            align: "Tl",           // alignment (defaults to "Bl")
            singleClick: true
        });

</script>
</asp:Content>
